The Week View Component > Customizing the Week View component

 

Customizing the Week View component

You can customize the appearance of the component by changing the properties of the FStyleFormat object. If you want to change a component's appearance completely, you can reskin it (described below).

 
Modifying FStyleFormat properties

The following table lists FStyleFormat properties you can edit to format the Week View component. You can change individual elements, or you can set global properties using globalStyleFormat:

Properties

arrow

background

border

bevel

disabledArrow

disabledBackground

disabledBevel

disabledBorder

disabledFace

disabledPaneFace

disabledSelectedBevel

disabledSelectedBorder

disabledSelectedFace

face

paneFace

selectedBevel

selectedBorder

selectedFace

Here is an example that uses the FStyleFormat object to set style properties for the Week View component:

globalStyleFormat.face = 0xCC0000;
globalStyleFormat.background = 0x33aa99;
globalStyleFormat.apply();

The Week_Example1.fla example file contains an example of using style properties.

For more information about the FStyleFormat object and a list of all its properties, see the FStyleFormat entries in the online ActionScript Dictionary in Macromedia Flash MX.

 
Reskinning the Week View component

When you add components to a Macromedia Flash document, a Flash UI Components folder is added to the Library panel. That folder contains a subdirectory called Component Skins. Within that subdirectory is a Skins subdirectory for each component that contains user interface elements you can redesign. Editing the skin completely changes the appearance of the component. Change the skin of an instance of a component by selecting the component on the stage and selecting Edit > Edit in Place, or by double-clicking it in the directory in the Library panel.

The assets for the Week View component are located in the Library panel in the Flash UI Components\Core Assets-Developer Only\Other Assets\FWeekView Assets folder.

For more information on customizing component skins, see the Macromedia Flash MX Help (select Help > Using Flash from within the program).